package orbitPrototype;

public class Util 
{
	public static void output(String msg)
	{
		System.out.println(msg);
	}
	
	public static void error(String msg)
	{
		System.out.println("ERROR: " + msg);
	}
	
	public static void error(String msg, String stacktrace)
	{
		System.out.println("ERROR: " + msg);
	}
	
	public static long getCurrentTick()
	{
		return System.currentTimeMillis();
	}
	
	public static void outputWithTimestamp(String msg)
	{
		java.util.Date date= new java.util.Date();
		System.out.println(msg + " -- [ " +new java.sql.Timestamp(date.getTime()) + " ]");
	}
	
	public static String getClassNameOnly(Class specifiedClass)
	{		  
		  int start = specifiedClass.getName().lastIndexOf('.') + 1;
		  
		  return specifiedClass.getName().substring(start);
	}
}
